import {LocModel} from "../../../base/LocModel";

export let rectAdapter: { adapter: IRectAdapter } = { adapter: undefined };

export interface IRectAdapter {
  createHandle(id: string): any;
  getCenterLocModel(handle: any): LocModel;
  getRandomLocModel(handle: any): LocModel;
  enumDestructables(handle: any, actionFunc: (this: void) => void): void
  enumItems(handle: any, actionFunc: (this: void) => void): void;

  destroy(handle: any): void;
  bindHandle(handle: any): void;
  equal(handle1: any, handle2: any): boolean
  isValid(handle: any): boolean
}
